<!DOCTYPE html>
<html lang="zh-cmn-Hans">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <!-- <link rel="icon" href="<%= BASE_URL %>logo.png"> -->
    <title>Ant Design Pro</title>
    <script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
    <script>
        (function (doc, win) {
            var docEl = doc.documentElement;
            var html = doc.querySelector('html')
            var width = docEl.clientWidth / 37.5;
            docEl.style.fontSize = width + 'px';
        })(document, window);
    </script>
    <style>
      *{
        box-sizing: border-box;
      }
      html,body{
        margin: 0;
      }
      #app{
          width: 100%;
          height: 100vh;
          background-image: url('./bg.png');
          background-size: 100% 100%;
          background-repeat: no-repeat;
      }
      .content_box{
        position: fixed;
        width: 100%;
        bottom: 9.2rem;
      }
      .input_row{
        width:27rem;
        height:4rem;
        background:rgba(255,255,255,1);
        border-radius:2rem;
        margin: 0 auto;
        display: flex;
      }
      .input_icon_box{
        width: 5.1rem;
        height:4rem;
        border-right: 0.1rem solid rgba(202,202,202,1);
        text-align: center;
      }
      .input_box{
        flex: 1;
        height:4rem;
        padding: 0 0.95rem;
      }
      .input_box>input{
        height:4rem;
        line-height: 4rem;
        border: none;
        outline: none;
      }
      .register_btn{
        width:27rem;
        height:4rem;
        line-height: 4rem;
        text-align: center;
        background:rgba(255,202,26,1);
        border-radius:2rem;
        margin: 0 auto;
        margin-top: 1.5rem;
        font-size:1.4rem;
        font-family:Source Han Sans SC;
        font-weight:500;
        color:rgba(238,50,18,1);
      }
    </style>
  </head>
  <body>
    <div id="app">
      <div class="content_box">
        <div class="input_row">
          <div class="input_icon_box" style="padding-top: 1rem;">
            <img style="width: 1.3rem;height: 2rem;" src="./phone.png" alt="">
          </div>
          <div class="input_box">
            <input id="phone" type="text" placeholder="请输入手机号" onkeyup="value=value.replace(/[^\w\/]/ig,'')">
          </div>
        </div>
        <div class="input_row" style="margin-top:1.5rem;">
          <div class="input_icon_box" style="padding-top: 1.1rem;">
            <img style="width: 2rem;height: 1.8rem;" src="./pwd.png" alt="">
          </div>
          <div class="input_box">
            <input id="pwd" type="text" placeholder="请输入密码" onkeyup="value=value.replace(/[^\w\/]/ig,'')">
          </div>
        </div>
        <div class="register_btn" id="submitBtn">点击注册领取红包</div>
      </div>
    </div>
    <script>
      $('#submitBtn').click(function(){
        let phone = $("#phone").val();
        let pwd = $("#pwd").val();
        if(!phone){
          alert('账号不能为空')
          return
        }
        if(!pwd){
          alert('密码不能为空')
          return
        }
        console.log("phone:",phone)
        console.log("pwd:",pwd)
      });
      
    </script>
  </body>
</html>
